package com.gaofeng.customviewdemo

import android.os.Bundle
import com.blankj.utilcode.util.ActivityUtils
import com.gaofeng.customviewdemo.databinding.ActivityMainBinding

class MainActivity : BaseActivity() {
    private lateinit var binding: ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        val view = binding.root
        setContentView(view)
        binding.btnGoCircleBtn.setOnClickListener {
            ActivityUtils.startActivity(CircleButtonActivity::class.java)
        }

        binding.btnShimmer.setOnClickListener {
            ActivityUtils.startActivity(ShimmerActivity::class.java)
        }

        binding.btnLife.setOnClickListener {
            ActivityUtils.startActivity(LifeLogActivity::class.java)
        }

        binding.btnCatLoading.setOnClickListener {
            ActivityUtils.startActivity(CatLoadingActivity::class.java)
        }

        binding.btnTextShape.setOnClickListener {
            ActivityUtils.startActivity(TextShapeActivity::class.java)
        }

        binding.btnLabelView.setOnClickListener {
            ActivityUtils.startActivity(LabelViewActivity::class.java)
        }
    }
}